import { lazy } from 'react'

// import daohang1 from '../views/导航页/导航页1'
// import daohang2 from '../views/导航页/导航页2'
// import daohang3 from '../views/导航页/导航页3'





import shouye1 from '../views/首页/首页'
import ceshi from '../views/测试页面/index'
import lybqcc from '../views/路由/路由标签query传参'
import lybqccjcb from '../views/路由/路由标签基础版传参'
import lyhsscc from '../views/路由/路由函数state传参'
import lufhsyy from '../views/路由/路由返回上一页'
import zjsy from '../views/组件通信'
import rdxym from '../views/redux页面/redux页面'
import hszjy from '../views/函数式组件/函数组件一'
import bdzj from '../views/表单/index'
import refsy from '../views/ref的使用/index'
import sstsy from '../views/setState使用/index.js'
import wxgdiv from '../views/Fragment无需跟div/index'
import chacao from '../views/插槽/index'
import smzq from '../views/生命周期/index'
import hoks from '../views/hooks/index'
import gjzj from '../views/高阶组件/index'
import sjqq from '../views/数据请求axios/index'
import tpsy from '../views/img使用/index'


let daohang1 = lazy(()=>import('../views/导航页/导航页1'))
let daohang2 = lazy(()=>import('../views/导航页/导航页2'))
let daohang3 = lazy(()=>import('../views/导航页/导航页3'))

// 第一级页面 在app中显示
const oneLevel = [{
  path: '/首页',
  component: shouye1,
  exact: false,
  title: '首页'
},{
  path: '/测试页面',
  component: ceshi,
  exact: true,
  title: '测试页面'
},{
  path: '/lybqcc',
  component: lybqcc,
  exact: true,
  title: '路由标签query传参',
},{
  path: '/lybqccjcb',
  component: lybqccjcb,
  exact: true,
  title: '路由标签基础版传参',
  parem:'/:id'
},{
  path: '/lyhsscc',
  component: lyhsscc,
  exact: true,
  title: '路由标签基础版传参',
},{
  path: '/lufhsyy',
  component: lufhsyy,
  exact: true,
  title: '路由返回上一页',
  parem:'/:id'
},{
  path: '/zjsy',
  component: zjsy,
  exact: true,
  title: '组件首页',
},{
  path: '/rdxym',
  component: rdxym,
  exact: true,
  title: 'redux页面',
},{
  path: '/hszjy',
  component: hszjy,
  exact: true,
  title: '函数组件一',
},{
  path: '/bdzj',
  component: bdzj,
  exact: true,
  title: '表单',
},{
  path: '/refsy',
  component: refsy,
  exact: true,
  title: 'ref的使用',
},{
  path: '/sstsy',
  component: sstsy,
  exact: true,
  title: 'setState使用',
},{
  path: '/wxgdiv',
  component: wxgdiv,
  exact: true,
  title: 'Fragment无需跟div',
},{
  path: '/chacao',
  component: chacao,
  exact: true,
  title: '插槽',
},{
  path: '/smzq',
  component: smzq,
  exact: true,
  title: '生命周期',
},{
  path: '/hoks',
  component: hoks,
  exact: true,
  title: 'hooks',
},{
  path: '/gjzj',
  component: gjzj,
  exact: true,
  title: '高阶组件',
},{
  path: '/sjqq',
  component: sjqq,
  exact: true,
  title: '数据请求axios',
},{
  path: '/tpsy',
  component: tpsy,
  exact: true,
  title: 'img使用',
}]

// 第二级页面 在首页中显示
const twoLevel = [{
  path: '/首页/daohang1',
  component: daohang1,
  exact: true,
  title: '导航页1'
},{
  path: '/首页/daohang2',
  component: daohang2,
  exact: true,
  title: '导航页2'
},{
  path: '/首页/daohang3',
  component: daohang3,
  exact: true,
  title: '导航页3'
}]

export {
  oneLevel,
  twoLevel
}